<template>
  <div>
    <van-grid>
      <van-grid-item
        v-for="item in channel"
        :key="item.id"
        :icon="item.icon_url"
        :text="item.name"
        style="flex-basis: 20%"
      />
    </van-grid>
  </div>
</template>

<script>
export default {
  props: ["channel"],
};
</script>

<style lang="less" scoped>
.van-grid {
  display: flex;
  flex-wrap: wrap;
}
.van-grid-item {
  position: relative;
  box-sizing: border-box;
}
</style>